<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var number =+prompt("请输入一个100-999之间的数字");
    var bai=+parseInt(number/100);
    var shi=+parseInt(number/10%10);
    var ge=+parseInt(number%10);
    if((bai*bai*bai)+(shi*shi*shi)+(ge*ge*ge)==number){
        console.log("水仙花");
    }else if((bai*bai*bai)+(shi*shi*shi)+(ge*ge*ge)!=number){
        console.log("不是");
    }else{
        console.log("错误");
    }
</script>